#include "collectitem.h"
#include "ui_collectitem.h"

collectitem::collectitem(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::collectitem)
{
    ui->setupUi(this);
}

collectitem::~collectitem()
{
    delete ui;
}

void collectitem::init(QString collectname, int collectnum,QString firstimage)
{
    this->collectname=collectname;
    this->collectnum=collectnum;
    this->firstimage=firstimage;
    ui->name->setText(collectname);
    ui->num->setText(QString::number(collectnum));
}

void collectitem::renewui()
{
    ui->name->setText(collectname);
    ui->num->setText(QString::number(collectnum));
}
